package com.li.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * @author lirenchun
 */
@RestController
@RequestMapping("/test")
@Configuration
public class TestController {

    @Autowired
    private RestTemplate restTemplate;

    @RequestMapping("/t1")
    public String Test1() {
        String result = restTemplate.getForObject("http://product-test-1/product-test-1/test/t1", String.class);
        return result;
    }



}
